import LayoutPage from '@/layout';

export default [
  {
    path: '',
    component: LayoutPage,
    meta: { title: '组件' },
    redirect: '/dashboard',
    children: [
      {
        name: 'dashboard',
        path: 'dashboard',
        meta: { title: '数字驾驶舱' },
        component: () => import('@/views/home'),
      },
    ],
  },
  {
    path: '/point',
    component: LayoutPage,
    redirect: '/point/index',
    children: [
      {
        name: 'Point',
        path: 'index',
        meta: { title: '项目点位' },
        component: () => import('@/views/point'),
      },
    ],
  },
  {
    path: '/alarm',
    component: LayoutPage,
    redirect: '/alarm/index',
    children: [
      {
        name: 'Alarm',
        path: 'inex',
        meta: { title: '告警管理' },
        component: () => import('@/views/alarm'),
      },
    ],
  },
  {
    path: '/ai',
    component: LayoutPage,
    redirect: '/ai/index',
    children: [
      {
        name: 'Ai',
        path: 'index',
        meta: { title: 'AI智能' },
        component: () => import('@/views/ai/'),
      },
    ],
  },
  {
    path: '/video',
    component: LayoutPage,
    redirect: '/video/index',
    children: [
      {
        name: 'Video',
        path: 'index',
        meta: { title: '视频监控' },
        component: () => import('@/views/video'),
      },
    ],
  },
  {
    path: '/device',
    component: LayoutPage,
    redirect: '/device/index',
    children: [
      {
        name: 'Device',
        path: 'index',
        meta: { title: '设备管理' },
        component: () => import('@/views/system/device'),
      },
    ],
  },
  {
    path: '/operation',
    component: LayoutPage,
    redirect: '/device/index',
    children: [
      {
        name: 'Operation',
        path: 'index',
        meta: { title: '运维管理' },
        component: () => import('@/views/operation'),
      },
    ],
  },
  {
    path: '/anasyls',
    component: LayoutPage,
    redirect: '/anasyls/index',
    children: [
      {
        name: 'Anasyls',
        path: 'anasyls',
        meta: { title: '数据分析' },
        component: () => import('@/views/anasyls'),
      },
    ],
  },
];
